#ifndef COMMON_H_
#define COMMON_H_

/* Define LOGGER when you want to generate log files in c:\logs\findme */
#define __LOGGER

#ifdef __LOGGER
	#include <flogger.h>
#endif
#
_LIT(KConfigFolfer, "c:\\Nokia\\Others\\FindMe\\");
_LIT(KConfigFile, "c:\\Nokia\\Others\\FindMe\\findme.conf");

// Define EMULATOR when the application is going to be tested in the emulator
#ifdef __WINS__
	#define __EMULATOR
#endif



#define PHONENUMBERLENGTH 12 /* Max length to store a number phone */
#define PHONELENTOCOMPARE 8 /* Number of digits it's going to be compared when the call it's received */
#define SERVERNAMELENGTH 128 /* Max length to store the server name */
#define PORTLENGTH 5
#define NODEIDLENGTH 16
#define INTERVALLENGTH 32
#define GPRSNAMELENGTH 64
#define GPSNAMELENGTH 128 /* Max length to store the gps name */
#define GPSADDRESSLENGTH 12 /* ex: 0ae3c5c08d01 */

#define MAXLENTEXTODISPLAY 17

enum TDisplaySection {
	ENodeid,
	EGps,
	EGprs,
	EInterval,
	EStatus,
	EGpsStatus,
	ELongitude,
	ELatitude,
	ENumSat,
	EAltitude,
	EGpsFix
	
};

class MDisplayObserver 
{
	public:
	virtual void DisplayStatus(const enum TDisplaySection& aSection, const TDesC& aText)=0;
	virtual void ShowInformationNote(const TDesC& aText)=0;
};

#endif